package com.tianhui.consignortwofei.mvp.ui.activity;

import android.os.Bundle;

import com.fgs.common.CommonFragment;
import com.fgs.common.CommonPresenter;
import com.fgs.common.CommonView;
import com.tianhui.consignortwofei.base.BaseActivity;
import com.tianhui.consignortwofei.constant.KeyValue;
import com.tianhui.consignortwofei.mvp.ui.fragment.OrderListFragment;
import com.tianhui.consignortwofei.pattern.orderStatus.status.impl.PaymentStatus;

/**
 * @author fgs
 * @date 2020/9/8
 * @description
 **/
public class PaymentListActivity extends BaseActivity {


    @Override
    public int getLayoutId() {
        return 0;
    }

    @Override
    public CommonPresenter createPresenter() {
        return null;
    }

    @Override
    public CommonView createView() {
        return null;
    }

    @Override
    public String getToolbarTitle() {
        return "付款申请";
    }

    @Override
    public void init() {

    }

    @Override
    public CommonFragment createFragment() {
        Bundle bundle = getIntent().getExtras();
        String searchKey = "";
        if (bundle != null && !bundle.isEmpty()) {
            searchKey = bundle.getString(KeyValue.KEY_DISPATCH_NO);
        }
        return OrderListFragment.newInstance(new PaymentStatus()).setIsNeedLazyLoad(false).setSearchKey(searchKey);
    }
}
